package org.jdcenter.rmi.impl;

import java.io.Serializable;

import org.jdcenter.rmi.abs.Argument;

public class RpcArgument implements Serializable {
    
	private static final long serialVersionUID = 1018755672618543965L;
	private final int cookie;
    private Argument arg;

    public RpcArgument() {
        this.cookie = -1;
    }

    public RpcArgument(int cookie, Argument arg) {
        this.cookie = cookie;
        this.arg = arg;
    }

    public int getCookie() {
        return cookie;
    }

    public Argument getArgument() {
        return arg;
    }

    public RpcArgument setArgument(Argument arg) {
        this.arg = arg;
        return this;
    }

    public String toString() {
        return arg.toString();
    }
}

